<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<div id="app">
  <cpn :cinfo="info">
    Something bad happened.
  </cpn>
</div>
<template id="cpn">
  <div>
    {{cinfo}}
  </div>
</template>
<script src="../js/vue.js"></script>
<script>
  const cpn = {
    template: '#cpn',
    data() {
      return {}
    },
    props: {
      cinfo: {
        info: Object,
        default() {
          return {}
        }
      }
    }
  }
  const app = new Vue({
    el: '#app',
    data: {
      message: "你好",
      info: {
        name: 'ehy',
        age: 15,
        height: 1.98
      }
    },
    components: {
      cpn
    }
  })
</script>
</body>
</html>
